package models.cms;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;

import play.data.validation.Constraints.Required;
import play.db.ebean.Model;


@Entity
public class CMSPage extends Model {
	@Required
	@Id
	public String name;
	@Required
	public String title;
	@Required
	@Lob
	@Column(length = 10000)
	public String body;

    public static Finder<String,CMSPage> find = new Finder(
            String.class, CMSPage.class
    );

}
